package com.zheng.pvz.view
{
	import com.utils.DebugTrace;
	import com.zheng.pvz.data.DataConst;
	import com.zheng.pvz.model.proxy.DisplayProxy;
	import com.zheng.pvz.utils.NumberToCoo;
	
	import flash.display.DisplayObjectContainer;
	import flash.geom.Point;
	
	/**
	 * 地砖 
	 * @author Administrator
	 * 
	 */
	public class Tile extends HitObjectClass
	{	
		public function Tile(contain:DisplayObjectContainer,tileProxy:DisplayProxy)
		{	
			super(contain,tileProxy);
			this.addStatus(DataConst.STATUS_NORMAL,new TileMc);
		}
		override public function put():void{
			changedStatus(this.proxy.status);
			contain.addChild(this);
			NumberToCoo.getInstance().numToCoo(this,new Point(this.row,this.cols));
			//if(DebugTrace.ballCanShow)this.showBall();
		}
		/*override public function showBall():void{
			
		}*/
	} 
}